<template>
  <div class="select_module" @click="moduleClick">
    <div class="title">{{title}}</div>
  </div>
</template>

<script>
  export default {
    name: "SelectModule",
    props: {
      path: String,
      title: String
    },
    methods: {
      moduleClick() {
        this.$router.push({path: this.path}, onComputed => {}, onAbort => {})
      }
    }
  }
</script>

<style scoped>
  .select_module {
    float: left;
    width: 260px;
    height: 320px;
    margin-right: 50px;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0,0,0, .1);
    border-radius: 20px;
    background-color: #fff;
    transition: all 1s ease 0s;
    line-height: 320px;
  }

  .select_module:last-child {
    margin-right: 0;
  }

  .select_module .title {
    transition: all 1s ease 0s;
    font-size: 30px;
    color: #6b7189;
    font-weight: 400;
    text-align: center;
  }

  .select_module:hover {
    transform: scale(1.05, 1.05);
    box-shadow: 0 0 10px rgba(0, 39, 102, 0.3);
    background-color: #fafbfc;
    cursor: pointer;
  }

  .select_module:hover .title {
    color: #002766;
  }

</style>
